package com.zklh.leetcode.other.problem2437;

/**
 * @author 坐看落花
 * @version 1.0
 * @date 2023/5/9 9:01
 */
public class Solution {
    public int countTime(String time) {
        int count = 1;
        char[] chars = time.toCharArray();

        if (chars[0] == '?' && chars[1] == '?') {
            count = 24;
        } else if (chars[0] == '?') {
            if (chars[1] - 48 > 3) count = 2;
            else count = 3;
        } else if (chars[1] == '?') {
            if (chars[0] - 48 == 2) count = 4;
            else count = 10;
        }
        if (chars[3] == '?') count *= 6;
        if (chars[4] == '?') count *= 10;
        return count;
    }
    public static void main(String[] args) {
        Solution solution = new Solution();
        System.out.println(solution.countTime("?5:00"));
        System.out.println(0 + '0');
    }
}
